import styles from './style.module.scss'

import warning from '../../assets/imgs/warning.svg'
import win from '../../assets/imgs/win.svg'
import loading from '../../assets/imgs/loading.svg'

export function Warnicon(p: { text: string }) {
  return (
    <div className={styles.warp}>
      <img src={warning.src} alt="" />
      <span>{p.text}</span>
    </div>
  )
}

export function Winicon(p: { text: string }) {
  return (
    <div className={styles.warp}>
      <img src={win.src} alt="" />
      <span>{p.text}</span>
    </div>
  )
}

export function Loadicon() {
  return (
    <img className={styles.load} src={loading.src} alt="" />
  )
}
